package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 
 * @TableName http_setting
 */
@TableName(value ="http_setting")
@Data
public class HttpSetting {
    /**
     * 配置编号
     */
    @TableId(value = "setting_id", type = IdType.AUTO)
    private Integer settingId;

    /**
     * 配置项名称
     */
    @NotBlank(message = "配置项名称不能为空")
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @NotBlank(message = "配置项值不能为空")
    @TableField(value = "value")
    private String value;

    /**
     * 配置项描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 状态 0启用1禁用
     */
    @NotNull(message = "状态不能为空")
    @TableField(value = "status_id")
    private Integer statusId;

    /**
     * 类型 0代理1公共头2邮箱3ConnectTimeout4ReadTimeout
     */
    @TableField(value = "type")
    private Integer type;


}